Summary
Loads a non-persistent cookie collection containing Content Studio data for the current user.
Category | AS Security |
Version | 1.0 |
Complies with Xhtml 1.0 / 1.1 rules | Yes |
Supported server programming languages | C# Visual Basic.NET |
Output content type | Unspecified or not applicable |
The component looks up the current user's data in Content Studio and loads a non persistent cookie is named CS_UserData with the retrieved data.
The following sub items exist in the CS_UserData cookie collection
- FullName
- Domain
- UserName
- SID
- UserID
- UserKey
- LoginDate
- PreviousLogin
- Trustee
Provided that a user has visited a page with Load user info cookeis a developer can access these data with using the following sample code:
//Write the email address of the logged in user
Response.Write(GetCookie("CS_UserData", "Email"));
'Write the email address of the logged in user
Response.Write(GetCookie("CS_UserData", "Email"))
Note the use of the
When to use
This component is typically put on the start page of a Content Studio Web site where you need Content Studio data for the logged in user.
Programming interface
Parameters
- This component has no parameter
Remarks
Place the component on one or more pages where the user are guaranteed to vist. Once the cookie is loaded the component will not execute its code until either the cookie has timed out or a the user uses a new Web Browser instance.